package remote.layouts
{
	import remote.IDispose;
	import remote.collections.ArrayCollection;
	import remote.collections.IList;
	import remote.controls.Component;
	
	/**
	 * 布局基类
	 * @author 银魂飞雪
	 * @createDate 2011-2-27
	 */
	public class LayoutBase implements IDispose
	{
		private var _target:Component;
		private var _elements:Array;
		
		/**
		 * 布局基类 
		 * @param target 布局应用的对象
		 * 
		 */		
		public function LayoutBase(target:Component = null)
		{
			_target = target;
			_elements = new Array();
		}
		
		/**
		 * 参与布局的对象集合 
		 * @return 
		 * 
		 */		
		public function get elements():Array
		{
			return _elements;
		}
		
		public function dispose():void
		{
			_target = null;
		}
		
		public function set target(value:Component):void
		{
			_target = value;
		}
		
		public function get target():Component
		{
			return _target;
		}
	}
}